<template>
  <l-watermark :content="configStore.is_watermark ? watermark_text : ''" :font="{ fontSize: 12 }"
    :fullScreen="true">
	</l-watermark>
</template>
<script setup lang="ts">
import useConfigStore from '@/stores/config'
import { computed } from 'vue';
const configStore = useConfigStore()

const watermark_text = computed(() => {
  const wap_member_info = uni.getStorageSync('wap_member_info') || { nickname: '', id: '' };
  const currentDate = new Date()
  const year = currentDate.getFullYear()
  const month = currentDate.getMonth() + 1 // 月份从0开始，需要加1
  const day = currentDate.getDate()
  const nowDate = year + '-' + month + '-' + day
  return [wap_member_info.nickname + '|' + wap_member_info.id, nowDate]
})


</script>